package EvaTCPL;
import java.lang.Math;

public class EvaTCPLlog extends EvaTCPLaexpression
{

  public EvaTCPLlog(EvaTCPLaexpression e1, EvaTCPLaexpression e2)
    {
      super(e1,e2);
    }

  /** Evaluate this arithmetic expression. */
  public double evaluate()
    {
      return Math.log(sons[0].evaluate())/Math.log(sons[1].evaluate());
    }

  public String toString()
    {
      return "log("+sons[0].toString()+", "+sons[1].toString()+")";
    }


}
